// src/components/global.js
import SvgIcon from './SvgIcon.vue'
import XHeader from './headerView.vue'
import MdViewer from './MdViewer.vue'
import XlsxViewer from './XlsxViewer.vue'
import Xupload from './Xupload.vue'

const GlobalComponents = {
  install(app) {
    // 注册全局组件
    app.component('SvgIcon', SvgIcon)
    app.component('XHeader', XHeader)
    app.component('MdViewer', MdViewer)
    app.component('XlsxViewer', XlsxViewer)
    app.component('Xupload', Xupload)
    // 可以在这里注册其他全局组件
    // app.component('AnotherComponent', AnotherComponent)
  }
}

export default GlobalComponents